<template>
  <VCharts
      ref="chart"
      :option="options"
      :autoresize="autoResize"
      :style="{ width, height }"
  />
</template>

<script setup lang="ts" >
import VCharts from 'vue-echarts';

defineOptions({ name: 'BhChart' });
defineProps({
  options: {
    type: Object,
    default() {
      return {};
    },
  },
  autoResize: {
    type: Boolean,
    default: true,
  },
  width: {
    type: String,
    default: '100%',
  },
  height: {
    type: String,
    default: '100%',
  },
});
const chart = ref(null)
defineExpose({
  chart,
})
</script>

<style scoped lang="less"></style>
